/**
 * my模块的父组件
 * 只在此处配置路由
 * 子路由:个人中心,我想去,我足迹
 */
import React from "react";
import { Switch, Route, Redirect } from "react-router-dom";
import Love from "./children/love";
import Zuji from "./children/zuji";
import Center from "./children/center";

function Index() {
  return (
    <Switch>
      <Route path="/my/center" component={Center} />
      <Route path="/my/love" component={Love} />
      <Route path="/my/zuji" component={Zuji} />
      <Redirect path="/my" to="/my/center" />
    </Switch>
  );
}

export default Index;
